
    
class Deck(object):
    def __init__(self):
        self.base_deck = []
        self.used_deck = []
        self.out_deck = []

    def shuffle(self):
        pass

    def deal(self):
        if len(self.base_deck) == 0:
            self.shuffle()
        return self.base_deck.pop()

    def checkBaseDeck(self, number):
        '''KongMing's Skill Start'''
        return [self.base_deck.pop() for top in range(number)]
    
    def modifyDeck(self, top, bottom):
        '''KongMing's Skill End'''
        if len(top)>0:
            top.reverse()
            self.base_deck.extend(top)
        if len(bottom)>0:
            bottom.reverse()
            for i in range(len(bottom)):
                self.base_deck.insert(0, bottom[i])
